package jf.jextn.converter;

public class ObjectToValueConveter<V, O> implements Converter<O, V>
{
    private Converter<V, O> conveter;

    public ObjectToValueConveter(Converter<V, O> conveter) {
        this.conveter = conveter;
    }

    @Override
    public V from(O value) {
        return conveter.to(value);
    }

    @Override
    public O to(V o) {
        return conveter.from(o);
    }

}
